package com.hm.system.elasticsearch.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldIndex;
import org.springframework.data.elasticsearch.annotations.FieldType;

import com.hm.system.elasticsearch.util.SystemEsDataDef.Db.Elasticsearch;

import lombok.Getter;
import lombok.Setter;

/**
 * @author shishun.wang
 * @date 上午11:37:56 2016年6月6日
 * @version 1.0
 * @describe
 */
@Setter
@Getter
@Document(type = Elasticsearch.PREFIX + "sys_user_info", indexName = Elasticsearch.Index.BASE_DEFAULT_INDEX)
public class EsSysUserInfo {

	@Id
	private String id;

	@Field(type = FieldType.String, index = FieldIndex.not_analyzed)
	private String name;

	@Field(type = FieldType.String, index = FieldIndex.not_analyzed)
	private String alias;

	@Field(type = FieldType.String, index = FieldIndex.not_analyzed)
	private String mobile;

	@Override
	public String toString() {
		return "EsSysUserInfo [id=" + id + ", name=" + name + ", alias=" + alias + ", mobile=" + mobile + "]";
	}

}
